package com.yl.order;

import android.os.Environment;

import java.text.SimpleDateFormat;
import java.util.Locale;

/**
 * create by cjx on 2024/5/16
 * desc:
 */
public class Constants {

    public static final SimpleDateFormat DATE_TIME_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.CHINA);
    public static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyyMMdd", Locale.CHINA);

    public static final String FILE_DIR = Environment.getExternalStorageDirectory().getAbsolutePath() + "/YL_ORDER";
    public static final String FILE_LOG_RUN_DIR = FILE_DIR + "/log/run/";
    public static final String FILE_LOG_CRASH_DIR = FILE_DIR + "/log/crash/";
    public static final String FILE_DB_DIR = FILE_DIR + "/db/";
    public static final String FILE_IMPORT_DIR = FILE_DIR + "/import/";

    public static final String BUS_SYNC_DATA_ACTION = "BUS_SYNC_DATA_ACTION";
    public static final String BUS_SYNC_PRODUCT_RESPONSE = "BUS_SYNC_PRODUCT_RESPONSE";
    public static final String BUS_PRODUCT_GROUP_UPDATE = "BUS_PRODUCT_GROUP_UPDATE";

    public static String ACTION_PRINTER_CONNECT_STATUS = "ACTION_PRINTER_CONNECT_STATUS"; // 读取status可以查看打印机连接状态

    public static final String SP_SERVER_IP = "SP_SERVER_IP";
    public static final String SP_PAYMENT_SCAN_GUN = "SP_PAYMENT_SCAN_GUN";

    // 分组类型
    public static final int GROUP_TYPE_GOODS = 1201;
    public static final int GROUP_TYPE_SPEC = 1202;

}
